<!DOCTYPE html>
<html>
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="utf-8">
  

  
  <title>Huafeihua</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  
  
  
  <meta property="og:type" content="website">
<meta property="og:title" content="Huafeihua">
<meta property="og:url" content="http://malone00.gitee.io/huafeihua/page/5/index.html">
<meta property="og:site_name" content="Huafeihua">
<meta property="og:locale" content="zh-CN">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Huafeihua">
  
    <link rel="alternate" href="/huafeihua/atom.xml" title="Huafeihua" type="application/atom+xml">
  
  
    <link rel="icon" href="/images/tmp.jpg">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link rel="stylesheet" href="/huafeihua/css/style.css">
  <link rel="stylesheet" href="/huafeihua/css/highlight.css">
</head>
</html>
<body>
  <div id="fullpage" class="mobile-nav-right">
    
      <div id="wrapper" title="图片来自网络">
    
    
      <header id="header">
  <div id="nav-toggle" class="nav-toggle"></div>
  <div class="head-box global-width">
    <nav class="nav-box nav-right">
      
        <a class="nav-item" href="/huafeihua/" title="">首页</a>
      
        <a class="nav-item" href="/huafeihua/categories" title="">分类</a>
      
        <a class="nav-item" href="/huafeihua/archives" title="">归档</a>
      
        <a class="nav-item" href="/huafeihua/tags" title="">标签</a>
      
        <a class="nav-item" href="/huafeihua/about" title="">关于</a>
      
    </nav>
  </div>
</header>
      <div id="middlecontent" title class="global-width sidebar-left">
        <section id="main">
  
    <article id="post-python/a-byte-of-python-3-笔记" class="article global-container article-type-post" itemscope itemprop="blogPost">
  
    <header class="article-header">
      
  
    <h1 itemprop="name">
      <a class="article-title" href="/huafeihua/2019/01/22/python/a-byte-of-python-3-笔记/">a byte of python 3 笔记</a>
    </h1>
  

    </header>
  
  <div class="article-meta">
    <a href="/huafeihua/2019/01/22/python/a-byte-of-python-3-笔记/" class="article-date">
  <time datetime="2019-01-22T07:58:59.000Z" itemprop="datePublished">2019-01-22</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/huafeihua/categories/python/">python</a>
  </div>

    
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/huafeihua/tags/python/">python</a></li></ul>

  </div>
  

  <div class="article-inner">
    
    <div class="article-content article-content-doorframe" itemprop="articleBody">
      
        
<!DOCTYPE html>
<html lang="en">
  <head><meta name="generator" content="Hexo 3.8.0">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>a byte of python 3 笔记</title>
    <style type="text/css" media="all">
      body {
        margin: 0;
        font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", sans-serif;
        font-size: 14px;
        line-height: 20px;
        color: #777;
        background-color: white;
      }
      .container {
        width: 700px;
        margin-right: auto;
        margin-left: auto;
      }

      .post {
        font-family: Georgia, "Times New Roman", Times, "SimSun", serif;
        position: relative;
        padding: 70px;
        bottom: 0;
        overflow-y: auto;
        font-size: 16px;
        font-weight: normal;
        line-height: 25px;
        color: #515151;
      }

      .post h1{
        font-size: 50px;
        font-weight: 500;
        line-height: 60px;
        margin-bottom: 40px;
        color: inherit;
      }

      .post p {
        margin: 0 0 35px 0;
      }

      .post img {
        border: 1px solid #D9D9D9;
      }

      .post a {
        color: #28A1C5;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="post">
        <h1 class="title">a byte of python 3 笔记</h1>
        <div class="show-content">
          <h1>基础<br>
</h1><p>语法--》变量--》模块--》包</p><p>导入 from import 不建议</p><p>import **</p><p>__version__ = ‘ V0.1 ’<br></p><p>mymoduel.__version__  #定义版本</p><p>print fun.__doc__ 打印文档</p><p>dir(fun) <br></p><p>参数（*args,**）</p><p>多个参数，**key,value<br></p><p>import this  python 艺术</p><p>包：</p><p>-world/</p><p>   -__init__.py</p><p>   -asia/</p><p>        -__init__.py</p><p>        -listrs.py<br></p><h1>关系</h1><p>列表--》元组--》字符串</p><p>字典<br></p><p>序列  集合<br></p>
        </div>
      </div>
    </div>
  </body>
</html>

      
    </div>
    
  </div>
  
  
</article>

  
    <article id="post-flask/flask-初始化" class="article global-container article-type-post" itemscope itemprop="blogPost">
  
    <header class="article-header">
      
  
    <h1 itemprop="name">
      <a class="article-title" href="/huafeihua/2019/01/22/flask/flask-初始化/">flask-初始化</a>
    </h1>
  

    </header>
  
  <div class="article-meta">
    <a href="/huafeihua/2019/01/22/flask/flask-初始化/" class="article-date">
  <time datetime="2019-01-22T06:58:59.000Z" itemprop="datePublished">2019-01-22</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/huafeihua/categories/python/">python</a>
  </div>

    
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/huafeihua/tags/flask/">flask</a></li></ul>

  </div>
  

  <div class="article-inner">
    
    <div class="article-content article-content-doorframe" itemprop="articleBody">
      
        
<!DOCTYPE html>
<html lang="en">
  <head><meta name="generator" content="Hexo 3.8.0">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flask 初始化</title>
    <style type="text/css" media="all">
      body {
        margin: 0;
        font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", sans-serif;
        font-size: 14px;
        line-height: 20px;
        color: #777;
        background-color: white;
      }
      .container {
        width: 700px;
        margin-right: auto;
        margin-left: auto;
      }

      .post {
        font-family: Georgia, "Times New Roman", Times, "SimSun", serif;
        position: relative;
        padding: 70px;
        bottom: 0;
        overflow-y: auto;
        font-size: 16px;
        font-weight: normal;
        line-height: 25px;
        color: #515151;
      }

      .post h1{
        font-size: 50px;
        font-weight: 500;
        line-height: 60px;
        margin-bottom: 40px;
        color: inherit;
      }

      .post p {
        margin: 0 0 35px 0;
      }

      .post img {
        border: 1px solid #D9D9D9;
      }

      .post a {
        color: #28A1C5;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="post">
        <h1 class="title">flask 初始化</h1>
        <div class="show-content">
          <p>hello.py</p><p>from flask import Flask</p><p>app = Flask(__name__)</p><p>@app.route('/')</p><p>def index():</p><p>    return '&lt;h1&gt;Hello, world!&lt;/h1&gt; '</p><hr><p>在程序实例上调用app.app_context()可获得一个程序上</p><p>下文。</p>
        </div>
      </div>
    </div>
  </body>
</html>

      
    </div>
    
  </div>
  
  
</article>

  
    <article id="post-flask/Flask简单数据处理（删除数据）" class="article global-container article-type-post" itemscope="" itemprop="blogPost">
  
    <header class="article-header">
      
  
    <h1 itemprop="name">
      <a class="article-title" href="/huafeihua/2019/01/22/flask/Flask简单数据处理（删除数据）/">flask-数据处理（删除数据）</a>
    </h1>
  

    </header>
  
  <div class="article-meta">
    <a href="/huafeihua/2019/01/22/flask/Flask简单数据处理（删除数据）/" class="article-date">
  <time datetime="2019-01-22T06:58:59.000Z" itemprop="datePublished">2019-01-22</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/huafeihua/categories/python/">python</a>
  </div>

    
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/huafeihua/tags/flask/">flask</a></li></ul>

  </div>
  

  <div class="article-inner">
    
    <div class="article-content article-content-doorframe" itemprop="articleBody">
      
        <p>##1. 删除代码块<br><div class="highlight-box" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" data-rel="PLAIN"><figure class="iseeu highlight /plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">@app.route(&apos;/hello/&lt;int:id&gt;/delete&apos;,methods=[&apos;GET&apos;,&apos;POST&apos;])</span><br><span class="line">def del_item(id):</span><br><span class="line">    if request.method == &apos;POST&apos;:</span><br><span class="line">        goods.__delitem__(id)</span><br><span class="line">        return redirect(url_for(&apos;hello_world&apos;))</span><br><span class="line">    else:</span><br><span class="line">        return render_template(&apos;deleteitem.html&apos;, id = id, goods =goods)</span><br></pre></td></tr></table></figure></div></p>
<p>##2. 删除页面 deleteitem.html<br><div class="highlight-box" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" data-rel="PLAIN"><figure class="iseeu highlight /plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">&lt;html&gt;</span><br><span class="line"></span><br><span class="line">&lt;body&gt;</span><br><span class="line">&lt;h1&gt; Are you sure you want to delete &#123;&#123;goods[id]&#125;&#125;? &lt;/h1&gt;</span><br><span class="line"></span><br><span class="line">&lt;form action=&quot;&#123;&#123; url_for(&apos;del_item&apos;,id = id)&#125;&#125;&quot; method = &apos;post&apos;&gt;</span><br><span class="line"></span><br><span class="line">&lt;input type=&apos;submit&apos; value = &apos;Delete&apos;&gt;</span><br><span class="line"></span><br><span class="line">&lt;/form&gt;</span><br><span class="line"></span><br><span class="line">&lt;a href = &quot;&#123;&#123; url_for(&apos;hello_world&apos;)&#125;&#125;&quot;&gt; Cancel &lt;/a&gt;</span><br><span class="line">&lt;/body&gt;</span><br><span class="line"></span><br><span class="line">&lt;/html&gt;</span><br></pre></td></tr></table></figure></div></p>
<p><a href="http://www.jianshu.com/p/b4d3f2340b9b" target="_blank" rel="noopener">接上一文</a>       &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;   列表改为数据库连接<a href="http://www.jianshu.com/p/8b0206f6c5b0" target="_blank" rel="noopener">Next</a></p>

      
    </div>
    
  </div>
  
  
</article>

  
    <article id="post-flask/Flask简单数据处理（增加数据）" class="article global-container article-type-post" itemscope="" itemprop="blogPost">
  
    <header class="article-header">
      
  
    <h1 itemprop="name">
      <a class="article-title" href="/huafeihua/2019/01/22/flask/Flask简单数据处理（增加数据）/">flask-数据处理（增加数据）</a>
    </h1>
  

    </header>
  
  <div class="article-meta">
    <a href="/huafeihua/2019/01/22/flask/Flask简单数据处理（增加数据）/" class="article-date">
  <time datetime="2019-01-22T06:58:59.000Z" itemprop="datePublished">2019-01-22</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/huafeihua/categories/python/">python</a>
  </div>

    
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/huafeihua/tags/flask/">flask</a></li></ul>

  </div>
  

  <div class="article-inner">
    
    <div class="article-content article-content-doorframe" itemprop="articleBody">
      
        <p>##服务端代码，数据用list<br><div class="highlight-box" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" data-rel="PLAIN"><figure class="iseeu highlight /plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br></pre></td><td class="code"><pre><span class="line">#-*-coding:GBK -*-</span><br><span class="line">from flask import Flask, redirect, render_template , url_for </span><br><span class="line">from flask.globals import request</span><br><span class="line">from flask_bootstrap import Bootstrap</span><br><span class="line">from pip._vendor.html5lib.html5parser import method_decorator_metaclass</span><br><span class="line"></span><br><span class="line">app = Flask(__name__)</span><br><span class="line"></span><br><span class="line">###########################</span><br><span class="line">goods = [&apos;apple&apos;,&apos;orange&apos;,&apos;juice&apos;]</span><br><span class="line"></span><br><span class="line">@app.route(&apos;/&apos;)</span><br><span class="line">def home():</span><br><span class="line">    return &apos;&lt;h1&gt;Home1&lt;/h1&gt;&apos;</span><br><span class="line"></span><br><span class="line">@app.route(&apos;/hello/&apos;)</span><br><span class="line">def hello_world():</span><br><span class="line">    return render_template(&apos;hello.html&apos;,goods = goods)</span><br><span class="line">@app.route(&apos;/login&apos;)</span><br><span class="line">def login():</span><br><span class="line">    return &apos;login.page&apos;</span><br><span class="line"></span><br><span class="line">@app.route(&apos;/books&apos;, methods=[&apos;GET&apos;, &apos;POST&apos;])</span><br><span class="line">def Books():</span><br><span class="line">    if request.method == &apos;POST&apos;:</span><br><span class="line">        g_name = request.form.get(&apos;g_name&apos;)</span><br><span class="line">        goods.append(g_name)</span><br><span class="line"></span><br><span class="line">    return render_template(&apos;hello.html&apos;,goods = goods)</span><br><span class="line"></span><br><span class="line">@app.route(&apos;/books/&lt;int:id&gt;/&apos;) </span><br><span class="line">def item_goods(id):</span><br><span class="line">    return goods[id]</span><br><span class="line"></span><br><span class="line">@app.route(&apos;/books/new&apos;,methods=[&apos;GET&apos;,&apos;POST&apos;])</span><br><span class="line">def create_new_item():</span><br><span class="line">   </span><br><span class="line">    return render_template(&apos;additem.html&apos;)</span><br><span class="line"></span><br><span class="line">if __name__ ==&quot;__main__&quot;:</span><br><span class="line">    app.debug=True</span><br><span class="line">    app.run(host=&apos;0.0.0.0&apos;, port=8080)</span><br></pre></td></tr></table></figure></div></p>
<p>##添加数据页面 additem.html<br><div class="highlight-box" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" data-rel="PLAIN"><figure class="iseeu highlight /plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">&#123;% extends &quot;testbase.html&quot; %&#125;</span><br><span class="line">&#123;% block title %&#125;Add a new item &#123;%  endblock %&#125;</span><br><span class="line">&#123;% block body %&#125;</span><br><span class="line">&lt;h1&gt;Hello&lt;/h1&gt;</span><br><span class="line">&lt;p&gt;Welcome to my program.&lt;/p&gt;</span><br><span class="line"></span><br><span class="line">&lt;form action=&apos;/books&apos; method=&apos;post&apos;&gt;</span><br><span class="line">    &lt;input type=&apos;text&apos; name=&apos;g_name&apos;&gt;&lt;/input&gt;</span><br><span class="line">    &lt;button type=&apos;submit&apos;&gt;Add&lt;/button&gt;</span><br><span class="line">&lt;/form&gt;</span><br><span class="line"></span><br><span class="line">&#123;% endblock %&#125;</span><br></pre></td></tr></table></figure></div></p>
<p>##其他需要的html见下<br>准备=&gt;<a href="http://www.jianshu.com/p/ed3d558d39a6" target="_blank" rel="noopener">起飞</a></p>

      
    </div>
    
  </div>
  
  
</article>

  
    <article id="post-flask/flask-创建迁移仓库" class="article global-container article-type-post" itemscope itemprop="blogPost">
  
    <header class="article-header">
      
  
    <h1 itemprop="name">
      <a class="article-title" href="/huafeihua/2019/01/22/flask/flask-创建迁移仓库/">flask-迁移仓库</a>
    </h1>
  

    </header>
  
  <div class="article-meta">
    <a href="/huafeihua/2019/01/22/flask/flask-创建迁移仓库/" class="article-date">
  <time datetime="2019-01-22T06:58:59.000Z" itemprop="datePublished">2019-01-22</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/huafeihua/categories/python/">python</a>
  </div>

    
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/huafeihua/tags/flask/">flask</a></li></ul>

  </div>
  

  <div class="article-inner">
    
    <div class="article-content article-content-doorframe" itemprop="articleBody">
      
        
<!DOCTYPE html>
<html lang="en">
  <head><meta name="generator" content="Hexo 3.8.0">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flask 创建迁移仓库</title>
    <style type="text/css" media="all">
      body {
        margin: 0;
        font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", sans-serif;
        font-size: 14px;
        line-height: 20px;
        color: #777;
        background-color: white;
      }
      .container {
        width: 700px;
        margin-right: auto;
        margin-left: auto;
      }

      .post {
        font-family: Georgia, "Times New Roman", Times, "SimSun", serif;
        position: relative;
        padding: 70px;
        bottom: 0;
        overflow-y: auto;
        font-size: 16px;
        font-weight: normal;
        line-height: 25px;
        color: #515151;
      }

      .post h1{
        font-size: 50px;
        font-weight: 500;
        line-height: 60px;
        margin-bottom: 40px;
        color: inherit;
      }

      .post p {
        margin: 0 0 35px 0;
      }

      .post img {
        border: 1px solid #D9D9D9;
      }

      .post a {
        color: #28A1C5;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="post">
        <h1 class="title">flask 创建迁移仓库</h1>
        <div class="show-content">
          <p>安装虚拟环境<br></p><p>(venv) $ pip install flask-migrate</p><p><br></p><div class="image-package">
<img src="http://upload-images.jianshu.io/upload_images/4805565-0491b301dc0859cb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" data-original-src="http://upload-images.jianshu.io/upload_images/4805565-0491b301dc0859cb.png?imageMogr2/auto-orient/strip" data-image-slug="0491b301dc0859cb" data-width="856" data-height="480"><br><div class="image-caption"></div>
</div><p>脚本中有两个函数，分别是upgrade()和downgrade()。upgrade()函数把迁移中的改动应用到数据库中，downgrade()函数则将改动删除。Alembic具有添加和删除改动的能力，因此数据库可重设到修改历史的任意一点。</p><hr><p>检查并修正好迁移脚本之后，我们可以使用db upgrade命令把迁移应用到数据库中：<br></p><p>(venv) $ python hello.py db upgrade</p><p>INFO [alembic.migration] Context impl SQLiteImpl.</p><p>INFO [alembic.migration] Will assume non-transactional DDL.</p><p>INFO [alembic.migration] Running upgrade None -&gt; 1bc594146bb5, initial migration</p><p>对第一个迁移来说，其作用和调用db.create_all()方法一样。但在后续的迁移中，</p><p>upgrade命令能把改动应用到数据库中，且不影响其中保存的数据。</p>
        </div>
      </div>
    </div>
  </body>
</html>

      
    </div>
    
  </div>
  
  
</article>

  
    <article id="post-flask/flask-mail" class="article global-container article-type-post" itemscope itemprop="blogPost">
  
    <header class="article-header">
      
  
    <h1 itemprop="name">
      <a class="article-title" href="/huafeihua/2019/01/22/flask/flask-mail/">flask-mail</a>
    </h1>
  

    </header>
  
  <div class="article-meta">
    <a href="/huafeihua/2019/01/22/flask/flask-mail/" class="article-date">
  <time datetime="2019-01-22T06:58:59.000Z" itemprop="datePublished">2019-01-22</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/huafeihua/categories/python/">python</a>
  </div>

    
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/huafeihua/tags/flask/">flask</a></li></ul>

  </div>
  

  <div class="article-inner">
    
    <div class="article-content article-content-doorframe" itemprop="articleBody">
      
        
<!DOCTYPE html>
<html lang="en">
  <head><meta name="generator" content="Hexo 3.8.0">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flask-mail</title>
    <style type="text/css" media="all">
      body {
        margin: 0;
        font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", sans-serif;
        font-size: 14px;
        line-height: 20px;
        color: #777;
        background-color: white;
      }
      .container {
        width: 700px;
        margin-right: auto;
        margin-left: auto;
      }

      .post {
        font-family: Georgia, "Times New Roman", Times, "SimSun", serif;
        position: relative;
        padding: 70px;
        bottom: 0;
        overflow-y: auto;
        font-size: 16px;
        font-weight: normal;
        line-height: 25px;
        color: #515151;
      }

      .post h1{
        font-size: 50px;
        font-weight: 500;
        line-height: 60px;
        margin-bottom: 40px;
        color: inherit;
      }

      .post p {
        margin: 0 0 35px 0;
      }

      .post img {
        border: 1px solid #D9D9D9;
      }

      .post a {
        color: #28A1C5;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="post">
        <h1 class="title">flask-mail</h1>
        <div class="show-content">
          <p>安装<br></p><p>(venv) $ pip install flask-mail</p><p><br></p><div class="image-package">
<img src="http://upload-images.jianshu.io/upload_images/4805565-4b20a2751105c994.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" data-original-src="http://upload-images.jianshu.io/upload_images/4805565-4b20a2751105c994.png?imageMogr2/auto-orient/strip" data-image-slug="4b20a2751105c994" data-width="807" data-height="284"><br><div class="image-caption"></div>
</div><p>示例6-1hello.py： 配置Flask-Mail使用Gmail<br></p><p>import os</p><p># ...</p><p>app.config['MAIL_SERVER'] = 'smtp.googlemail.com'</p><p>app.config['MAIL_PORT'] = 587</p><p>app.config['MAIL_USE_TLS'] = True</p><p>app.config['MAIL_USERNAME'] = os.environ.get('MAIL_USERNAME')</p><p>app.config['MAIL_PASSWORD'] = os.environ.get('MAIL_PASSWORD')</p><p><br></p><div class="image-package">
<img src="http://upload-images.jianshu.io/upload_images/4805565-71b69f257f41bd22.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" data-original-src="http://upload-images.jianshu.io/upload_images/4805565-71b69f257f41bd22.png?imageMogr2/auto-orient/strip" data-image-slug="71b69f257f41bd22" data-width="861" data-height="421"><br><div class="image-caption"></div>
</div><p><br></p><div class="image-package">
<img src="http://upload-images.jianshu.io/upload_images/4805565-fc573f4d40215756.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" data-original-src="http://upload-images.jianshu.io/upload_images/4805565-fc573f4d40215756.png?imageMogr2/auto-orient/strip" data-image-slug="fc573f4d40215756" data-width="712" data-height="329"><br><div class="image-caption">测试发送<br>
</div>
</div>
        </div>
      </div>
    </div>
  </body>
</html>

      
    </div>
    
  </div>
  
  
</article>

  
    <article id="post-python/Python-访问RabbitMQ" class="article global-container article-type-post" itemscope="" itemprop="blogPost">
  
    <header class="article-header">
      
  
    <h1 itemprop="name">
      <a class="article-title" href="/huafeihua/2019/01/22/python/Python-访问RabbitMQ/">Python-访问RabbitMQ</a>
    </h1>
  

    </header>
  
  <div class="article-meta">
    <a href="/huafeihua/2019/01/22/python/Python-访问RabbitMQ/" class="article-date">
  <time datetime="2019-01-22T06:58:59.000Z" itemprop="datePublished">2019-01-22</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/huafeihua/categories/python/">python</a>
  </div>

    
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/huafeihua/tags/python/">python</a></li></ul>

  </div>
  

  <div class="article-inner">
    
    <div class="article-content article-content-doorframe" itemprop="articleBody">
      
        <p>#先安装RabbitMQ<br>使用pika 库</p>
<p>生产者<br><div class="highlight-box" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" data-rel="PLAIN"><figure class="iseeu highlight /plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">import pika</span><br><span class="line">credentials = pika.PlainCredentials(&apos;user&apos;, &apos;pwd&apos;)</span><br><span class="line">connection = pika.BlockingConnection(pika.ConnectionParameters(</span><br><span class="line">    &apos;10.1.120.131&apos;, 5672, &apos;test_host&apos;, credentials</span><br><span class="line">))</span><br><span class="line">channel = connection.channel()</span><br><span class="line">#queue</span><br><span class="line">channel.queue_declare(queue=&apos;balance&apos;)</span><br><span class="line">channel.basic_publish(</span><br><span class="line">    exchange=&apos;&apos;,</span><br><span class="line">    routing_key=&apos;balance&apos;,</span><br><span class="line">    body=&apos;测试测试消息&apos;)</span><br><span class="line">connection.close()</span><br></pre></td></tr></table></figure></div></p>
<p>安装好mq 创建用户，密码 授权，具体设置查询度娘<br>这里只做举例<br>test_host  为mq的Vhost<br>body 为消息内容</p>
<p>消费者<br><div class="highlight-box" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" data-rel="PLAIN"><figure class="iseeu highlight /plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">import pika</span><br><span class="line">credentials = pika.PlainCredentials(&apos;pymq&apos;,&apos;123123&apos;)</span><br><span class="line">connection = pika.BlockingConnection(pika.ConnectionParameters(</span><br><span class="line">    &apos;10.1.120.131&apos;,5672,&apos;test_host&apos;,credentials))</span><br><span class="line">channel = connection.channel()</span><br><span class="line"></span><br><span class="line">channel.queue_declare(queue=&apos;balance&apos;)</span><br><span class="line"></span><br><span class="line">def callback(ch, method, properties, body):</span><br><span class="line">    print(&quot; [x] Received %r&quot; % body)</span><br><span class="line">    print(bytes.decode(body))</span><br><span class="line"></span><br><span class="line">channel.basic_consume(callback,</span><br><span class="line">                      queue=&apos;balance&apos;,</span><br><span class="line">                      no_ack=True)</span><br><span class="line"></span><br><span class="line">print(&apos; [*] Waiting for messages. To exit press CTRL+C&apos;)</span><br><span class="line">channel.start_consuming()</span><br></pre></td></tr></table></figure></div></p>
<blockquote>
<p>消息内容为Byte ,可以用bytes.decode()  转一下</p>
</blockquote>
<p>打印内容如下：<br><img src="https://upload-images.jianshu.io/upload_images/4805565-5dad055265673f46.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="打印内容"></p>

      
    </div>
    
  </div>
  
  
</article>

  
    <article id="post-Linux-添加权限" class="article global-container article-type-post" itemscope itemprop="blogPost">
  
    <header class="article-header">
      
  
    <h1 itemprop="name">
      <a class="article-title" href="/huafeihua/2019/01/22/Linux-添加权限/">Linux 添加权限</a>
    </h1>
  

    </header>
  
  <div class="article-meta">
    <a href="/huafeihua/2019/01/22/Linux-添加权限/" class="article-date">
  <time datetime="2019-01-22T06:58:59.000Z" itemprop="datePublished">2019-01-22</time>
</a>
    
    
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/huafeihua/tags/centos/">centos</a></li></ul>

  </div>
  

  <div class="article-inner">
    
    <div class="article-content article-content-doorframe" itemprop="articleBody">
      
        
<!DOCTYPE html>
<html lang="en">
  <head><meta name="generator" content="Hexo 3.8.0">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Linux 添加权限</title>
    <style type="text/css" media="all">
      body {
        margin: 0;
        font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", sans-serif;
        font-size: 14px;
        line-height: 20px;
        color: #777;
        background-color: white;
      }
      .container {
        width: 700px;
        margin-right: auto;
        margin-left: auto;
      }

      .post {
        font-family: Georgia, "Times New Roman", Times, "SimSun", serif;
        position: relative;
        padding: 70px;
        bottom: 0;
        overflow-y: auto;
        font-size: 16px;
        font-weight: normal;
        line-height: 25px;
        color: #515151;
      }

      .post h1{
        font-size: 50px;
        font-weight: 500;
        line-height: 60px;
        margin-bottom: 40px;
        color: inherit;
      }

      .post p {
        margin: 0 0 35px 0;
      }

      .post img {
        border: 1px solid #D9D9D9;
      }

      .post a {
        color: #28A1C5;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="post">
        <h1 class="title">Linux 添加权限</h1>
        <div class="show-content">
          <h1>添加shell 文件执行权限<br>
</h1><p>chmod  u+x *.sh<br></p>
        </div>
      </div>
    </div>
  </body>
</html>

      
    </div>
    
  </div>
  
  
</article>

  
    <article id="post-Test" class="article global-container article-type-post" itemscope="" itemprop="blogPost">
  
    <header class="article-header">
      
  
    <h1 itemprop="name">
      <a class="article-title" href="/huafeihua/2019/01/22/Test/">Centos7-Minimal安装</a>
    </h1>
  

    </header>
  
  <div class="article-meta">
    <a href="/huafeihua/2019/01/22/Test/" class="article-date">
  <time datetime="2019-01-22T06:58:59.000Z" itemprop="datePublished">2019-01-22</time>
</a>
    
    
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/huafeihua/tags/centos/">centos</a></li></ul>

  </div>
  

  <div class="article-inner">
    
    <div class="article-content article-content-doorframe" itemprop="articleBody">
      
        <p>#1.安装后查看网络情况<br>ifconfig<br>如果没此命令<br>yum provides ifconfig # 查看哪个包有此命令<br>net-tools 安装<br>yum install net-tools</p>
<p>#2. 查看网卡起用情况<br>nmtui<br>tab 选择 空格 确认<br>service Network restart #重启服务<br>ip a<br>ip address</p>
<p>#3.安装桌面<br>yum install “GNOME Desktop”  比较大</p>
<p>启动 startx</p>
<p>vi /etc/inittab<br>文档说明用以下方式</p>
<h1 id="systemctl-get-default"><a href="#systemctl-get-default" class="headerlink" title="systemctl get-default"></a>systemctl get-default</h1><h1 id="systemctl-set-default-multi-user-target"><a href="#systemctl-set-default-multi-user-target" class="headerlink" title="systemctl set-default multi-user.target"></a>systemctl set-default multi-user.target</h1><h1 id="systemctl-set-default-graphical-target"><a href="#systemctl-set-default-graphical-target" class="headerlink" title="systemctl set-default graphical.target"></a>systemctl set-default graphical.target</h1><p>#4.管理git</p>
<h3 id="安装配置管理Git"><a href="#安装配置管理Git" class="headerlink" title="安装配置管理Git"></a>安装配置管理Git</h3><h3 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h3><div class="highlight-box" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" data-rel="PLAIN"><figure class="iseeu highlight /plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"># yum install git</span><br></pre></td></tr></table></figure></div>
<h4 id="git-config"><a href="#git-config" class="headerlink" title="git config"></a>git config</h4><p>安装完需要用<code>git config</code>配置user name和user email，否则不能commit。</p>
<div class="highlight-box" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" data-rel="PLAIN"><figure class="iseeu highlight /plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">$ git config --global user.email &quot;you@example.com&quot;</span><br><span class="line">$ git config --global user.name &quot;Your Name&quot;</span><br><span class="line">$ git config --list</span><br></pre></td></tr></table></figure></div>
<p><code>git config</code>有3种选项，对应不同配置文件。</p>
<ol>
<li>–system /etc/gitconfig</li>
<li>–global ~/.gitconfig</li>
<li>no option .git/config</li>
</ol>
<h4 id="SSH-KEY"><a href="#SSH-KEY" class="headerlink" title="SSH KEY"></a>SSH KEY</h4><p>为了使用GitHub的SSH keys功能，利用<code>ssh-keygen</code>工具在本地生成rsa密钥对。</p>
<div class="highlight-box" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" data-rel="PLAIN"><figure class="iseeu highlight /plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ ssh-keygen -t rsa -C &quot;your_email@example.com&quot; // generate a rsa key pair in the file ~/.ssh/id_rsa &amp; ~/.ssh/id_rsa.pub</span><br><span class="line">$ ssh-keygen -p //adding or changing a passphrase</span><br></pre></td></tr></table></figure></div>
<h4 id="gitignore"><a href="#gitignore" class="headerlink" title=".gitignore"></a>.gitignore</h4><p>各种类型的gitignore模板<code>https://github.com/github/gitignore</code>。</p>
<div class="highlight-box" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" data-rel="PLAIN"><figure class="iseeu highlight /plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"># 此为注释</span><br><span class="line">*.a 忽略所有目录下.a结尾的文档</span><br><span class="line">!lib.a 但不忽略lib.a文档</span><br><span class="line">*.[oa] 忽略所有目录下.a或.o结尾的文档</span><br><span class="line">*~ 忽略所有目录下~结尾的文档</span><br><span class="line">TODO 忽略所有目录下的TODO文档</span><br><span class="line">/TODO 仅仅忽略根目录下的TODO文档</span><br><span class="line">build/ 忽略所有目录下的build文件夹</span><br><span class="line">/build/ 仅仅忽略根目录下的build文件夹</span><br><span class="line">doc/**/*.txt 忽略doc文件夹下的所有.txt文档</span><br><span class="line">星号*匹配零个或多个任意字符</span><br><span class="line">[abc] 匹配任何一个列在方括号中的字符（这个例子要么匹配一个 a，要么匹配一个 b，要么匹配一个 c）</span><br><span class="line">问号?只匹配一个任意字符</span><br><span class="line">如果在方括号中使用短划线分隔两个字符，表示所有在这两个字符范围内的都可以匹配，比如 [0-9] 表示匹配所有 0 到 9 的数字</span><br></pre></td></tr></table></figure></div>
<h4 id="常用命令"><a href="#常用命令" class="headerlink" title="常用命令"></a>常用命令</h4><div class="highlight-box" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" data-rel="PLAIN"><figure class="iseeu highlight /plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><span class="line">$ git init</span><br><span class="line">$ git add *</span><br><span class="line">$ git commit -m &apos;message&apos;</span><br><span class="line"></span><br><span class="line">$ git status</span><br><span class="line">$ git status -s</span><br><span class="line">$ git status --short</span><br><span class="line"></span><br><span class="line">$ git diff</span><br><span class="line"></span><br><span class="line">$ git clone git@github.com:who/whatrepo.git</span><br><span class="line">$ git clone https://github.com/who/whatrepo</span><br><span class="line">$ git clone https://github.com/who/whatrepo SpecifiedFolder</span><br><span class="line"></span><br><span class="line">$ git remote</span><br><span class="line">$ git remote -v</span><br><span class="line">$ git remote add [shortname] [url]</span><br><span class="line">$ git remote rm [remote-name]</span><br><span class="line">$ git remote rename [old-name] [new-name]</span><br><span class="line">$ git remote fetch [remote-name]</span><br><span class="line">$ git push [remote-name] [branch-name]</span><br><span class="line">$ git pull</span><br></pre></td></tr></table></figure></div>
<p>#5.管理yum 源<br>默认yum源(软件仓库):base+extras+updates<br>国内yum源<a href="http://mirrors.aliyun.com/help/centos" target="_blank" rel="noopener">http://mirrors.aliyun.com/help/centos</a><br>扩展yum源:<br>    方法一: 通过访问阿里yum源镜像地址获取.<br>    方法二:直接安装epel源方式:yum install epel-release</p>
<p>#6 安装pip<br>默认yum中可能没有<br>安装epel后再试<br>yum install python-pip  成功</p>

      
    </div>
    
  </div>
  
  
</article>

  
    <article id="post-flask/Flask简单数据处理（编辑数据）" class="article global-container article-type-post" itemscope="" itemprop="blogPost">
  
    <header class="article-header">
      
  
    <h1 itemprop="name">
      <a class="article-title" href="/huafeihua/2019/01/22/flask/Flask简单数据处理（编辑数据）/">flask-数据处理（编辑数据）</a>
    </h1>
  

    </header>
  
  <div class="article-meta">
    <a href="/huafeihua/2019/01/22/flask/Flask简单数据处理（编辑数据）/" class="article-date">
  <time datetime="2019-01-22T06:58:59.000Z" itemprop="datePublished">2019-01-22</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/huafeihua/categories/python/">python</a>
  </div>

    
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/huafeihua/tags/flask/">flask</a></li></ul>

  </div>
  

  <div class="article-inner">
    
    <div class="article-content article-content-doorframe" itemprop="articleBody">
      
        <p>##接之前的文章，这里只贴部分代码</p>
<ol>
<li>编辑代码块<div class="highlight-box" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" data-rel="PLAIN"><figure class="iseeu highlight /plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">@app.route(&apos;/hello#&lt;int:id&gt;&apos;,methods=[&apos;GET&apos;,&apos;POST&apos;])</span><br><span class="line">def edit_item(id):</span><br><span class="line">    </span><br><span class="line">    if request.method ==&apos;POST&apos;:</span><br><span class="line">        </span><br><span class="line">        goods[id] = request.form[&apos;g_name&apos;]</span><br><span class="line">        </span><br><span class="line">        return redirect(url_for(&apos;hello_world&apos;))</span><br><span class="line">    else:</span><br><span class="line">        return render_template(&apos;edititem.html&apos;, id = id,goods = goods)</span><br></pre></td></tr></table></figure></div>
</li>
</ol>
<p>##编辑页面 edititem.html<br><div class="highlight-box" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" data-rel="PLAIN"><figure class="iseeu highlight /plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">&#123;% extends &quot;testbase.html&quot; %&#125;</span><br><span class="line">&#123;% block title %&#125;Edit the item &#123;%  endblock %&#125;</span><br><span class="line">&#123;% block body %&#125;</span><br><span class="line">&lt;h1&gt;Hello&lt;/h1&gt;</span><br><span class="line">&lt;p&gt;Welcome to my program.&lt;/p&gt;</span><br><span class="line"></span><br><span class="line">&lt;form action=&apos;&#123;&#123;url_for(&apos;edit_item&apos;, id = id)&#125;&#125;&apos; method=&apos;post&apos;&gt;</span><br><span class="line">    &lt;p&gt;Name:&lt;/p&gt;</span><br><span class="line">    &lt;input type=&apos;text&apos; name=&apos;g_name&apos; placeholder=&apos;&#123;&#123; goods[id] &#125;&#125;&apos;&gt;&lt;/input&gt;</span><br><span class="line">    &lt;button type=&apos;submit&apos;&gt;Edit&lt;/button&gt;</span><br><span class="line">&lt;/form&gt;</span><br><span class="line">&lt;a href=&apos;&#123;&#123;url_for(&apos;hello_world&apos;,goods=goods)&#125;&#125;&apos;&gt;Canel&lt;/a&gt;</span><br><span class="line"></span><br><span class="line">&#123;% endblock %&#125;</span><br></pre></td></tr></table></figure></div></p>
<p><a href="http://www.jianshu.com/p/cc31e16e0b88" target="_blank" rel="noopener">接上一文</a></p>

      
    </div>
    
  </div>
  
  
</article>

  


  <nav id="page-nav">
    
    <a class="extend prev" rel="prev" href="/huafeihua/page/4/">&laquo; 上一页</a><a class="page-number" href="/huafeihua/">1</a><span class="space">&hellip;</span><a class="page-number" href="/huafeihua/page/3/">3</a><a class="page-number" href="/huafeihua/page/4/">4</a><span class="page-number current">5</span><a class="page-number" href="/huafeihua/page/6/">6</a><a class="extend next" rel="next" href="/huafeihua/page/6/">下一页 &raquo;</a>
  </nav>


</section>
        <aside id="sidebar">
  
    <div class="widget-box">
  <div class="avatar-box">
    <img class="avatar" src="/huafeihua/images/default-avatar.jpeg" title="图片来自网络">
    <h3 class="avatar-name">
      
        听风看雨
      
    </h3>
    <p class="avatar-slogan">
      抗揍的愤青，半个IT男。
    </p>
  </div>
</div>


  
    
  <div class="widget-box">
    <h3 class="widget-title">分类</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/huafeihua/categories/Linux/">Linux</a></li><li class="category-list-item"><a class="category-list-link" href="/huafeihua/categories/python/">python</a></li><li class="category-list-item"><a class="category-list-link" href="/huafeihua/categories/入坑/">入坑</a></li><li class="category-list-item"><a class="category-list-link" href="/huafeihua/categories/技巧/">技巧</a></li><li class="category-list-item"><a class="category-list-link" href="/huafeihua/categories/自动化/">自动化</a></li><li class="category-list-item"><a class="category-list-link" href="/huafeihua/categories/项目管理/">项目管理</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-box">
    <h3 class="widget-title">标签</h3>
    <div class="widget">
      <ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/Appium/">Appium</a></li><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/Docker/">Docker</a></li><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/Jenkins/">Jenkins</a></li><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/Nginx/">Nginx</a></li><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/Selenium/">Selenium</a></li><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/Ubuntu/">Ubuntu</a></li><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/centos/">centos</a></li><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/flask/">flask</a></li><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/python/">python</a></li><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/rabbit/">rabbit</a></li><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/sql/">sql</a></li><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/ubuntu/">ubuntu</a></li><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/效率/">效率</a></li><li class="tag-list-item"><a class="tag-list-link" href="/huafeihua/tags/爬虫/">爬虫</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-box">
    <h3 class="widget-title">标签云</h3>
    <div class="widget tagcloud">
      <a href="/huafeihua/tags/Appium/" style="font-size: 10px;">Appium</a> <a href="/huafeihua/tags/Docker/" style="font-size: 13.33px;">Docker</a> <a href="/huafeihua/tags/Jenkins/" style="font-size: 10px;">Jenkins</a> <a href="/huafeihua/tags/Nginx/" style="font-size: 10px;">Nginx</a> <a href="/huafeihua/tags/Selenium/" style="font-size: 13.33px;">Selenium</a> <a href="/huafeihua/tags/Ubuntu/" style="font-size: 10px;">Ubuntu</a> <a href="/huafeihua/tags/centos/" style="font-size: 16.67px;">centos</a> <a href="/huafeihua/tags/flask/" style="font-size: 20px;">flask</a> <a href="/huafeihua/tags/python/" style="font-size: 20px;">python</a> <a href="/huafeihua/tags/rabbit/" style="font-size: 10px;">rabbit</a> <a href="/huafeihua/tags/sql/" style="font-size: 10px;">sql</a> <a href="/huafeihua/tags/ubuntu/" style="font-size: 10px;">ubuntu</a> <a href="/huafeihua/tags/效率/" style="font-size: 10px;">效率</a> <a href="/huafeihua/tags/爬虫/" style="font-size: 10px;">爬虫</a>
    </div>
  </div>

  
    
  <div class="widget-box">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/huafeihua/archives/2019/01/">一月 2019</a></li></ul>
    </div>
  </div>

  
    
  <div class="widget-box">
    <h3 class="widget-title">最新文章</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/huafeihua/2019/01/29/python-mq/">python rabbitmq</a>
          </li>
        
          <li>
            <a href="/huafeihua/2019/01/22/python/Unittest/">Python-Unittest</a>
          </li>
        
          <li>
            <a href="/huafeihua/2019/01/22/项目管理/项目管理2018-07-23/">U项目管理</a>
          </li>
        
          <li>
            <a href="/huafeihua/2019/01/22/随笔/-Kanboard-安装之Windows/">Kanboard 安装之Windows</a>
          </li>
        
          <li>
            <a href="/huafeihua/2019/01/22/运维部署/单网卡实现内外网访问/">单网卡实现内外网访问</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
      </div>
      <footer id="footer">
  <div class="foot-box global-width">
    &copy; 2019 Edwin Ma &nbsp;&nbsp;
    驱动于 <a href="http://hexo.io/" target="_blank">Hexo</a><br>
    <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span id="busuanzi_container_site_pv">阁下是第<span id="busuanzi_value_site_pv"></span>个访客</span>
  </div>
</footer>
      <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>

<script src="/js/jquery-2.0.3.min.js"></script>

  <link rel="stylesheet" href="/huafeihua/fancybox/jquery.fancybox.css">
  <script src="/huafeihua/fancybox/jquery.fancybox.pack.js"></script>


<script src="/huafeihua/js/script.js"></script>



    </div>
    <nav id="mobile-nav" class="mobile-nav-box">
  <div class="mobile-nav-img mobile-nav-top"></div>
  
    <a href="/huafeihua/" class="mobile-nav-link">首页</a>
  
    <a href="/huafeihua/categories" class="mobile-nav-link">分类</a>
  
    <a href="/huafeihua/archives" class="mobile-nav-link">归档</a>
  
    <a href="/huafeihua/tags" class="mobile-nav-link">标签</a>
  
    <a href="/huafeihua/about" class="mobile-nav-link">关于</a>
  
  <div class="mobile-nav-img  mobile-nav-bottom"></div>
</nav>    
  </div>
</body>
</html>